package com.dk.config;

import com.dk.convertor.DateConvertor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//配置类
@Configuration
public class BeanConfig {

    //实例化日期转换器
    @Bean
    public DateConvertor getDataConvertor(){
        return new DateConvertor();
    }
}
